package cdc.emu;

import java.awt.Color;
import java.awt.Font;

import com.amazon.kindle.kindlet.ui.KindletUIResources;

public class KindletUIResourcesImpl extends KindletUIResources {

	private static Color black = new Color(0, 0, 0); 
	
	private static Color gray1 = new Color(8, 8, 8); 
	private static Color gray2 = new Color(16, 16, 16); 
	private static Color gray3 = new Color(24, 24, 24); 
	
	private static Color white = new Color(255, 255, 255); 
	
	public Color getColor(KColorName paramKColorName) {
		return getColor(paramKColorName.getPlainName());
	}

	public Color getColor(String paramString) {
		
		
		if(paramString.equals(KColorName.BLACK)) {
			return black;
		}
		else if(paramString.equals(KColorName.WHITE)) {
			return white;
		}
		else if(paramString.equals(KColorName.GRAY_01)) {
			return gray1;
		}
		else if(paramString.equals(KColorName.GRAY_02)) {
			return gray2;
		}
		else if(paramString.equals(KColorName.GRAY_03)) {
			return gray3;
		}
		else if(paramString.equals(KColorName.GRAY_04)) {

		}
		else if(paramString.equals(KColorName.GRAY_05)) {
			
		}
		else if(paramString.equals(KColorName.GRAY_06)) {
			
		}
		else if(paramString.equals(KColorName.GRAY_07)) {
			
		}
		else if(paramString.equals(KColorName.GRAY_08)) {
			
		}
		else if(paramString.equals(KColorName.GRAY_09)) {
			
		}
		else if(paramString.equals(KColorName.GRAY_10)) {
			
		}
		else if(paramString.equals(KColorName.GRAY_11)) {
					
		}
		else if(paramString.equals(KColorName.GRAY_12)) {
			
		}
		else if(paramString.equals(KColorName.GRAY_13)) {
			
		}
		else if(paramString.equals(KColorName.GRAY_14)) {
			
		}
	
		
		
		return Color.BLACK;
	}

	public Color getBackgroundColor(KColorName paramKColorName) {
		return  getColor(paramKColorName);
	}

	public Color getBackgroundColor(String paramString) {

		return getColor(paramString);
	}

	public Font getFont(KFontFamilyName paramKFontFamilyName, int paramInt,
			KFontStyle paramKFontStyle, boolean paramBoolean) {
	
		Font font = new Font(paramKFontFamilyName.toString(), 
				paramKFontStyle.getJavaFontStyle(), paramInt);
		
		return font;
	}
	
	
	public Font getFont(KFontFamilyName paramKFontFamilyName, int paramInt,
			KFontStyle paramKFontStyle) {

		return getFont(paramKFontFamilyName, paramInt, paramKFontStyle, false);
	}



	public Font getFont(KFontFamilyName paramKFontFamilyName, int paramInt) {
		return getFont(paramKFontFamilyName, paramInt, KFontStyle.PLAIN);
	}

	public Font getFont(KFontFamilyName paramKFontFamilyName, int paramInt,
			boolean paramBoolean) {
	
		 return getFont(paramKFontFamilyName, paramInt, KFontStyle.PLAIN, false);
	}

	public Font getBodyFont(KFontFamilyName paramKFontFamilyName,
			KFontStyle paramKFontStyle) {

		return getFont(paramKFontFamilyName, 15, KFontStyle.PLAIN, false);
	}

	public Font getBodyFont(KFontFamilyName paramKFontFamilyName,
			KFontStyle paramKFontStyle, boolean paramBoolean) {
		// TODO Auto-generated method stub
		return getFont(paramKFontFamilyName, 15, paramKFontStyle, paramBoolean);
	}

	public Font getBodyFont(KFontFamilyName paramKFontFamilyName) {
		// TODO Auto-generated method stub
		return getFont(paramKFontFamilyName, 15, KFontStyle.PLAIN, false);
	}

	public Font getBodyFont(KFontFamilyName paramKFontFamilyName,
			boolean paramBoolean) {

		return getFont(paramKFontFamilyName, 15, KFontStyle.PLAIN, paramBoolean);
	}

}
